//
//  HAction.m
//  TestOCRedux
//
//  Created by Hotacool on 2019/1/17.
//  Copyright © 2019 Hotacool. All rights reserved.
//

#import "HAction.h"

@implementation HAction

+ (HAction *)actionWithType:(NSString *)type {
    return [HAction actionWithType:type payload:nil];
}

+(HAction *)actionWithType:(NSString *)type payload:(id)payload {
    return [[HAction alloc] initWithType:type payload:payload];
}

- (instancetype)initWithType:(NSString*)type payload:(id)payload {
    if (self = [super init]) {
        self.type = type;
        self.payload = payload;
    }
    return self;
}
@end
